home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / classic.jar / skin / classic / global / toolbar.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-05-01  |  4.1 KB  |  154 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== toolbar.css ====================================================
  40.   == Styles used by XUL toolbar-related elements.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44.  
  45. /* ::::: toolbox ::::: */
  46.  
  47. toolbox {
  48.   -moz-appearance: toolbox;
  49. }
  50.  
  51. /* ::::: menubar & toolbar ::::: */
  52.  
  53. toolbar {
  54.   -moz-appearance: toolbar;
  55.   min-width: 1px;
  56.   min-height: 20px;
  57.   padding: 2px 0px;
  58. }
  59.  
  60. menubar, toolbar[type="menubar"] {
  61.   -moz-appearance: menubar;
  62.   min-width: 1px;
  63.   min-height: 20px;
  64.   padding: 1px 0px;
  65. }
  66.  
  67. /* in browser.xul, the menubar is inside a toolbar... */
  68. toolbaritem > menubar {
  69.   -moz-appearance: none;
  70. }
  71.  
  72. /* ::::: toolbar decorations ::::: */
  73.  
  74. toolbarseparator {
  75.   -moz-appearance: separator !important;
  76.   margin : 0;
  77.   border: 0;
  78.   min-width: 2px;
  79. }
  80.  
  81. toolbarspacer {
  82.   width: 15px;
  83. }
  84.  
  85. toolbar[mode="icons"] .toolbarbutton-text {
  86.   display: none;
  87. }
  88.  
  89. toolbar[mode="text"] .toolbarbutton-icon {
  90.   display: none;
  91. }
  92.  
  93. toolbar[mode="text"] .toolbarbutton-text {
  94.   padding: 0 !important;
  95.   margin: 3px 5px !important;
  96. }
  97.  
  98. /* ::::: toolbarpaletteitem ::::: */
  99.  
  100. toolbarpaletteitem {
  101.   cursor: -moz-grab;
  102. }
  103.  
  104. .toolbarpaletteitem-box[type="spacer"],
  105. .toolbarpaletteitem-box[type="spring"] {
  106.   border: 1px solid #808080;
  107.   background-color: #FFF !important;
  108. }
  109.  
  110. toolbarpaletteitem[place="toolbar"] {
  111.   margin-left: -2px;
  112.   margin-right: -2px;
  113.   border-left: 2px solid transparent;
  114.   border-right: 2px solid transparent;
  115. }
  116.  
  117. toolbarpaletteitem[place="toolbar"] > toolbarspacer {
  118.   width: 11px;
  119. }
  120.  
  121. .toolbarpaletteitem-box[type="spacer"][place="toolbar"],
  122. .toolbarpaletteitem-box[type="spring"][place="toolbar"] {
  123.   margin-top: 2px;
  124.   margin-bottom: 2px;
  125.   -moz-margin-start: 0px;
  126.   -moz-margin-end: 2px;
  127. }
  128.  
  129. .toolbarpaletteitem-box[type="separator"][place="palette"] {
  130.   width: 2px;
  131.   height: 50px;
  132. }
  133.  
  134. .toolbarpaletteitem-box[type="spacer"][place="palette"],
  135. .toolbarpaletteitem-box[type="spring"][place="palette"] {
  136.   margin-bottom: 2px;
  137.   width: 50px;
  138.   height: 50px;
  139. }
  140.  
  141. .toolbarpaletteitem-box[type="spring"][place="palette"] {
  142.   background: url("chrome://global/skin/toolbar/spring.png") no-repeat center;
  143. }
  144.  
  145. /* ..... drag and drop feedback ..... */
  146.  
  147. toolbarpaletteitem[dragover="left"] {
  148.   border-left-color: #000000;
  149. }
  150.  
  151. toolbarpaletteitem[dragover="right"] {
  152.   border-right-color: #000000;
  153. }
  154.